package com.sz.common.pay.pingan.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * Function: 证件类型 <br>
 * Author: siqishangshu <br>
 * Date: 2017-10-27 10:31:00
 *
     51-法人代码证
     52-组织机构代码证
     53-政府机构/公共机构批文
     54-外交部 外事办批文（使）
     55-外交部 外事办批文（领）
     56-外交部 外事办批文（办）
     60-香港商业登记证
     65-事业单位登记证
     66-社会团体登记证
     67-商业登记证（离岸）
     68-营业执照
     69-对公临时证件
     70-其他证明文件(公司)
     71-公司户重复有效证件
     73-统一社会信用代码
     80-金融机构

     1-身份证
     2-军人军官证
     3-港澳台居民通行证
     4-中国护照
     8-武警警官证
     9-临时身份证
     11-户口簿
     12-中国居民其他证
     13-军人士兵证
     14-军人文职干部证
     15-军人其他证件
     16-武警士兵证
     17-武警文职干部证
     18-武警其他证件
     19-外国护照
     20-外国公民其他证件
 */
public class CertificateType {
    public static final String IDENTIFICATION_CARD           = "1";	    //身份证
    public static final String OFFICER_CERTIFICATE           = "2";	    //军人军官证
    public static final String HONGKONG_MACAU_ID_CARD        = "3";	    //港澳台居民通行证
    public static final String PASSPORT                      = "4";	    //中国护照
    public static final String POLICE_OFFICER                = "8";	    //武警警官证
    public static final String TEMPORARY_ID_CARD             = "9";	    //临时身份证
    public static final String RESIDENCE_BOOKLET             = "11";	    //户口簿
    public static final String CHINA_OTHERS                  = "12";	    //中国居民其他证
    public static final String SOLDIER_CERTIFICATE           = "13";	    //军人士兵证
    public static final String SOLDIER_CIVILIAN_POST         = "14";	    //军人文职干部证
    public static final String SOLDIER_OTHERS                = "15";	    //军人其他证件
    public static final String ARMED_POLICE                  = "16";	    //武警士兵证
    public static final String ARMED_POLICE_CIVILIAN_POST    = "17";	    //武警文职干部证
    public static final String ARMED_POLICE_OTHERS           = "18";	    //武警其他证件
    public static final String FOREIGN_PASSPORT              = "19";	    //外国护照
    public static final String FOREIGN_OTHER                 = "20";	    //外国公民其他证件
    public static final String LEGAL_CODE                    = "51";	    //法人代码证
    public static final String ORGANIZATION_CODE             = "52";	    //组织机构代码证
    public static final String GOVERNMENT_ORGANS             = "53";	    //政府机构/公共机构批文
    public static final String MINISTRY_FOREIGN_AMBASSADOR   = "54";	    //外交部外事办批文（使）
    public static final String MINISTRY_FOREIGN_TERRITORY    = "55";	    //外交部外事办批文（领）
    public static final String MINISTRY_FOREIGN_OFFICE       = "56";	    //外交部外事办批文（办
    public static final String HK_BUSINESS                   = "60";	    //香港商业登记证
    public static final String GOVERNMENT_AFFILIATED         = "65";	    //事业单位登记证
    public static final String SOCIAL_GROUPS                 = "66";	    //社会团体登记证
    public static final String OFFSHORE_BUSINESS             = "67";	    //商业登记证（离岸）
    public static final String BUSINESS_LICENSE              = "68";	    //营业执照
    public static final String TEMPORARY_PUBLIC              = "69";	    //对公临时证件
    public static final String COMPANY_OTHERS                = "70";	    //其他证明文件(公司)
    public static final String COMPANY_REPEAT                = "71";	    //公司户重复有效证件
    public static final String UNIFIED_SOCIAL_CREDIT_CODE    = "73";	    //统一社会信用代码
    public static final String FINANCIAL_INSTITUTION         = "80";	    //金融机构
    public static Map<String,String> certificateTypeMap = new HashMap<>();
    static {
            certificateTypeMap.put("1","身份证");
            certificateTypeMap.put("2","军人军官证");
            certificateTypeMap.put("3","港澳台居民通行证");
            certificateTypeMap.put("4","中国护照");
            certificateTypeMap.put("8","武警警官证");
            certificateTypeMap.put("9","临时身份证");
            certificateTypeMap.put("11","户口簿");
            certificateTypeMap.put("12","中国居民其他证");
            certificateTypeMap.put("13","军人士兵证");
            certificateTypeMap.put("14","军人文职干部证");
            certificateTypeMap.put("15","军人其他证件");
            certificateTypeMap.put("16","武警士兵证");
            certificateTypeMap.put("17","武警文职干部证");
            certificateTypeMap.put("18","武警其他证件");
            certificateTypeMap.put("19","外国护照");
            certificateTypeMap.put("20","外国公民其他证件");
            certificateTypeMap.put("51","法人代码证");
            certificateTypeMap.put("52","组织机构代码证");
            certificateTypeMap.put("53","政府机构/公共机构批文");
            certificateTypeMap.put("54","外交部外事办批文（使）");
            certificateTypeMap.put("55","外交部外事办批文（领）");
            certificateTypeMap.put("56","外交部外事办批文（办）");
            certificateTypeMap.put("60","香港商业登记证");
            certificateTypeMap.put("65","事业单位登记证");
            certificateTypeMap.put("66","社会团体登记证");
            certificateTypeMap.put("67","商业登记证（离岸）");
            certificateTypeMap.put("68","营业执照");
            certificateTypeMap.put("69","对公临时证件");
            certificateTypeMap.put("70","其他证明文件(公司)");
            certificateTypeMap.put("71","公司户重复有效证件");
            certificateTypeMap.put("73","统一社会信用代码");
            certificateTypeMap.put("80","金融机构");
    }

    public static String getCertificateTypeByCode(String code){
        if (certificateTypeMap.containsKey(code)) {
            return certificateTypeMap.get(code);
        }
        return "unknown";
    }
}
